package com.bgIntlgn.client.entity.jishubu.papaerLibary;

import java.util.Date;

import yuhuibear.poat.annotations.relation.View;
import yuhuibear.poat.object.bean.Bean;

@View(name = "borrow_return_record_detail", sqlToCreate = "select distinct br.*, p.uid, "
		+ "employee_name_by_id(br.borrower_id) as borrower, employee_name_by_id(br.charger_id) as charger, "
		+ "employee_work_number(br.borrower_id) as borrower_wnum, employee_work_number(br.charger_id) as charger_wnum "
		+ "from borrow_return_records as br, papers as p, dictionarys as d, pic_papers as pp, pic_paper_suites as pps "
		+ "where br.suite_id = pps.id and pps.uid = p.uid and p.paper_id = pp.id and d.id = pp.type order by br.id")
public class BorrowReturnRecordDetail implements Bean {

	private Long id;

	private Date time;

	private String uid;

	private Integer copies;

	private Long suite_id;

	private String borrower;

	private String charger;

	private String borrowerWnum;

	private String chargerWnum;

	private Long charger_id;

	private Long borrower_id;

	private String comment;

	private boolean broken;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Date getTime() {
		return time;
	}

	public void setTime(Date time) {
		this.time = time;
	}

	public String getUid() {
		return uid;
	}

	public void setUid(String uid) {
		this.uid = uid;
	}

	public Integer getCopies() {
		return copies;
	}

	public void setCopies(Integer copies) {
		this.copies = copies;
	}

	public Long getSuite_id() {
		return suite_id;
	}

	public void setSuite_id(Long suite_id) {
		this.suite_id = suite_id;
	}

	public String getBorrower() {
		return borrower;
	}

	public void setBorrower(String borrower) {
		this.borrower = borrower;
	}

	public String getCharger() {
		return charger;
	}

	public void setCharger(String charger) {
		this.charger = charger;
	}

	public boolean isBroken() {
		return broken;
	}

	public void setBroken(boolean broken) {
		this.broken = broken;
	}

	public String getBorrowerWnum() {
		return borrowerWnum;
	}

	public void setBorrowerWnum(String borrowerWnum) {
		this.borrowerWnum = borrowerWnum;
	}

	public String getChargerWnum() {
		return chargerWnum;
	}

	public void setChargerWnum(String chargerWnum) {
		this.chargerWnum = chargerWnum;
	}

	public Long getCharger_id() {
		return charger_id;
	}

	public void setCharger_id(Long charger_id) {
		this.charger_id = charger_id;
	}

	public Long getBorrower_id() {
		return borrower_id;
	}

	public void setBorrower_id(Long borrower_id) {
		this.borrower_id = borrower_id;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

}
